package com.zm.service.impl;

import com.zm.dao.BackendUserMapper;
import com.zm.pojo.BackendUser;
import com.zm.service.BackendUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**超级管理员实现类
 * Created by Administrator on 2018/9/13.
 */
@Service
public class BackendUserServiceImpl implements BackendUserService {
    @Resource
    private BackendUserMapper backendUserMapper;
    /**
     * 超级管理员登录
     *
     * @param usercode
     * @param userpassword
     * @return
     */
    @Override
    public BackendUser login(String usercode, String userpassword) {
        BackendUser user=backendUserMapper.selectLogin(usercode, userpassword);
        return user;
    }
}
